/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.asportoonline.business.delegates;

import java.util.List;
import org.asportoonline.business.beans.LocaleManager;
import org.asportoonline.entities.Cliente;
import org.asportoonline.entities.Locale;

/**
 *
 * @author fe
 */
public class LocaleManagerDelegate extends AbstractDelegate implements LocaleManager {

    @Override
    protected String getServiceName() {
        return "java:comp/env/ejb/LocaleManager";
    }

    public List<Locale> elencoLocali() {
        return ((LocaleManager)getService()).elencoLocali();
    }

    public void inserisciLocale(Locale locale) {
        ((LocaleManager)getService()).inserisciLocale(locale);
    }

    public Locale cercaLocale(long id) {
        return ((LocaleManager)getService()).cercaLocale(id);
    }

    public Locale cercaLocale(String nome) {
        return ((LocaleManager)getService()).cercaLocale(nome);
    }

    public List<Locale> recuperaLocaliVenditore(Cliente c) {
        return ((LocaleManager)getService()).recuperaLocaliVenditore(c);
    }

    public void aggiornaLocale(Locale locale) {
        ((LocaleManager)getService()).aggiornaLocale(locale);
    }

    public List<String> recuperaTutteLeLocalita() {
        return ((LocaleManager)getService()).recuperaTutteLeLocalita();
    }

    public List<Locale> cercaPerLocalita(String localita) {
        return ((LocaleManager)getService()).cercaPerLocalita(localita);
    }
}
